package com.demo.account;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * Hello world!
 *
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.demo.account.mapper"})
@EnableDubbo
public class AccountService8010Application
{
    public static void main( String[] args )
    {
        SpringApplication.run(AccountService8010Application.class,args);
        CopyOnWriteArrayList<Object> objects = new CopyOnWriteArrayList<>();

//        String msg="好好学习天天向上";
//        ByteBuffer byteBuffer = ByteBuffer.allocate(1024);
//        byte[] bytes = msg.getBytes(StandardCharsets.UTF_8);
//        byteBuffer.put(bytes);

    }


}
